home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Activation
/
Focus.h
< prev
next >
Wrap
Text File
|
2000-06-23
|
822b
|
51 lines
// Focus.h
#ifndef Focus_h
#define Focus_h
#ifndef ListOf_h
#include "ListOf.h"
#endif
class Focus
{
friend class Activator;
private:
ListOf< Activator > activators;
Focus *const parent;
Focus *favoredChild;
uint32 children;
bool active;
// not implemented:
Focus( const Focus& );
void operator=( const Focus& );
protected:
void Activate();
void Deactivate();
public:
Focus();
Focus( Below, Focus& parent );
~Focus();
bool Active() const { return active; }
Focus *Parent() const { return parent; }
Focus *FavoredChild() const { return favoredChild; }
void FavorChild( Focus& );
void FavorNoChild();
void DisfavorChild( Focus& );
bool Favored() const;
void BeFavored();
void BeDisfavored();
static Focus& NeverActive();
};
#endif